// GTK+ common functions
// Copyright 2006 (C) Ralph Thomas

#ifndef MISSION_VIEW_GTK_COMMON_H
#define MISSION_VIEW_GTK_COMMON_H

namespace view {
	//
	/// Scale the first size down so that it fits in the
	/// second size.
	///
	/// \param	w1	(in/out) the first width.
	/// \param	h1	(in/out) the first height.
	/// \param	w2	(in) the second width.
	/// \param	h2	(in) the second height.
	//
	void scale_aspect( long& x, long& y, long& w1, long& h1, long w2, long h2 );
};

#endif

